/* 
 * File:   spaceship.h
 * Author: brunoslr
 *
 * Created on 16 de Setembro de 2009, 00:07
 */
#include "constants.h"
#include "Shoot.h"
#ifndef _SPACESHIP_H
#define	_SPACESHIP_H

const int MaxShoots = 2;

class SpaceShip {
public:


    double positionx;

    double positiony;

    double radius;

    GLint score;

    GLint lifes;

    bool explosion;

    bool gameOver;

    Shoot *tiro[MaxShoots];

    int undestructible;

    int expFrame;

    double speed;

    int move(void);
    double getSpeed(void);
    void setSpeed(double x);

    double getPositionx(void);
    double getPositiony(void);
    int drawSpaceship(GLint tex_player);
    int TryToShoot(int x);
    int CollisionTestShoots(double x, double y);
    int destroyed();


    SpaceShip(GLint tex_player);
    SpaceShip(const SpaceShip& orig);
    virtual ~SpaceShip();


private:

};
#endif	/* _SPACESHIP_H */


